﻿using System;

namespace AutoUpdateEngine
{
    static class Program
    {

        [STAThread]
        static void Main(string[] args)
        {
            if (args.Length < 1)
            {
                Console.WriteLine("you should use AutoUpdateClient to start this program...");
                Console.Read();
            }
            else
            {
                string defaultWorkingDirectory = args[0];

                Updater updater = new Updater(defaultWorkingDirectory);
                updater.Report = delegate(string msg) { Console.WriteLine(msg); };
                updater.Update();

                Console.Read();
            }
        }        

    }
}